<?php
define('BASEURL', 'http://localhost/cms/admin/');
define('SYSPATH', 'system/');
require SYSPATH . "function.php";
require SYSPATH . "site.php";
$action = input_get('action');
if (file_exists('site/action/' . $action . '.php')) {
    require('site/action/' . $action . '.php');
} else {
    require('site/action/show_404.php');
}
?>